//
//  SignatureData.h
//  Today
//
//  Created by dllo on 15/5/25.
//  Copyright (c) 2015年 fanfan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "SignatureModel.h"
#import <SIAlertView.h>

@interface SignatureData : NSObject
{
    FMDatabase *db;
}
-(void)createSignatureTable;
-(BOOL)insertSignatureTable:(SignatureModel *)model;
//检测是否存在
-(BOOL)isExists:(NSString *)signaturetitle;
- (NSArray *)selectSignaturetable;
- (NSArray *)selectSignaturePic;
- (void)deleteTable:(NSString *)str;

+ (void)openDataBase;
+ (void)createTable;
+ (BOOL)insertSignatureTable:(SignatureModel *)model;
+ (NSArray *)selectSignaturetable;
+ (NSArray *)selectSignaturePic;
+ (void)deleteTable:(NSString *)str;
+ (BOOL)isExists:(NSString *)signaturetitle;
@end